package com.fyl.pattern.observe;

public class Client {
    public static void main(String[] args) {
        //创建主题
        SubscriptionSubject subject = new SubscriptionSubject();

        //订阅主题
        subject.attach(new WeiXinUser("张三"));
        subject.attach(new WeiXinUser("李四"));

        //推送消息
        subject.notify("一条好消息啊");
    }
}
